package mx.edu.ittoluca.fp;

/**
 * Created with IntelliJ IDEA.
 * User: Victor Santillán
 * Date: 21/06/12
 * Time: 12:22 PM
 */
public class Suscripcion {

    private int precio;
    private int duracion;

    public Suscripcion(int precio, int duracion) {
        this.precio = precio;
        this.duracion = duracion;
    }

    public double precioMes() {
        return precio / duracion;
    }

    public void cancelar() {
        duracion = 0;
    }

}
